package com.huayi.datagovernance.dao.master;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huayi.datagovernance.common.SysConstant;
import com.huayi.datagovernance.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author wuch
 * @version 1.0
 * @date 2021/4/8 15:26
 */
//@Master
@DS(SysConstant.DBSOURCE_POSTGRESQL)
public interface MasterUserMapper
        extends BaseMapper<User>
{
    List<User> selectByName(String name);

    List<JSONObject> selectModelMeta(@Param("ew") QueryWrapper<Map<String,Object>> queryWrapper);
}
